Ext.define("wmf.view.channel.query", {
    extend: "wmf.lib.FormPanel",
    alias: "widget.channelQuery",
	anchor: '100% 100%',
    border: false,
    fieldDefaults: {
        labelWidth: 90
    },
    items: [{
        xtype: "textfield",
        name: "channelName", 
        fieldLabel: "通道名称"
    },{
        fieldLabel: "通道类型",
        xtype: 'combo',
		name: 'channelType',
		emptyText:  '请选择...',
		hiddenName: 'channelType',
		autoSelect: true,
		displayField: 'name',
		queryMode: 'local',
		valueField: 'channelType',
		triggerAction: 'all',
		editable: false,
		store: 'channel.channelType'
    }],
    
	dockedItems: [{
		xtype: 'toolbar',
		dock: 'bottom',
		layout: {
			type: 'hbox',
			alian: 'center',
			flex: 1
		},
		
		defaults: {
				xtype: 'button'
		},
		items: [{
			xtype : 'tbfill'
		},{
			itemId: 'save',
			icon: 'resources/icons/find.png',
			formBind: true,
			text: translations.global.operation.query
		},{
			itemId: 'reset',
			icon: 'resources/icons/icon_recover.png',
			text: translations.global.operation.reset
		},{
			itemId: 'cancel',
			icon : 'resources/icons/icon_revoke.png',
			text: translations.global.operation.cancel
		}]
	}]
});